#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  mailertest.py
#       Author @  Huoty
#  Create date @  2016-05-11 18:49:17
#  Description @  
# *************************************************************

from mailer import Mailer, Message

# Script starts from here

mail_msg = Message(From="监听者<konitor@yeah.net>",
		To=["1346632121@qq.com"],
		charset="utf-8")
mail_msg.Subject = "Baidu push report"
mail_msg.Html = "<strong>Report: </strong><p>%s</p>" % ("This is alternate text.")
sender = Mailer(host="smtp.yeah.net", usr="konitor@yeah.net", pwd="YQfvomHHHhqd9q9H")
sender.send(mail_msg)
